// 商品管理
import request from '@/utils/request'

// 获取用户活动列表
export function getActivityList(params) {
    return request({
        url: '/mall-admin/mall/mallMerchantChannel/channel/getList',
        method: 'get',
        params
    })
}
// 保存商户渠道
export function saveChannel(params) {
    return request({
        url: '/mall-admin/mall/mallMerchantChannel/channel/add',
        method: 'post',
        params
    })
}
// 第三方活动列表
export function getthreeActivitiesList(params) {
    return request({
        url: '/mall-admin/mall/mallThreeActivities/threeActivities/getList',
        method: 'get',
        params
    })
}

// 保存编辑第三方活动
export function saveThreeActivities(data) {
    return request({
        url: '/mall-admin/mall/mallThreeActivities/threeActivities/add',
        method: 'post',
        data,
        typeData:'JSON'
    })
}

// 获取第三方活动详情
export function getThreeActivitInfo(params) {
    return request({
        url: '/mall-admin/mall/mallThreeActivities/threeActivities/getInfo',
        method: 'get',
        params
    })
}

// 第三方活动补录用户
export function addGoodsToUser(params) {
    return request({
        url: '/mall-admin/mall/mallThreeActivities/threeActivities/addGoodsToUser',
        method: 'get',
        params
    })
}